home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Draw / Sources / SOMPart.idl < prev    next >
Encoding:
Text File  |  1996-09-17  |  4.6 KB  |  185 lines  |  [TEXT/MPS ]

  1. #ifdef __PRIVATE__
  2. //#
  3. //#    File:        SOMPart.idl
  4. //#
  5. //#    Contains:    Interface for ODFDraw class
  6. //#
  7. //#    Copyright:    (C) 1993-1995 by Apple Computer, Inc., all rights reserved.
  8. //#
  9. #else
  10. //#    Copyright:    (C) 1993-1995 by Apple Computer, Inc., all rights reserved.
  11. #endif
  12.  
  13. #ifndef SOMPART_IDL
  14. #define SOMPART_IDL
  15.  
  16. #ifndef FWENVDEF_IDL
  17. #include "FWEnvDef.idl"
  18. #endif
  19.  
  20. #ifndef _PART_
  21. #include "Part.idl"
  22. #endif
  23.  
  24. //==============================================================================
  25. // Constants
  26. //==============================================================================
  27.  
  28. //==============================================================================
  29. // Classes defined in this interface
  30. //==============================================================================
  31.  
  32. //==============================================================================
  33. // Classes used by this interface
  34. //==============================================================================
  35.  
  36. interface  ODCanvas;
  37. interface  ODFacet;
  38. interface  ODFrame;
  39. interface  ODLink;
  40. interface  ODLinkSource;
  41. interface  ODShape;
  42. interface  ODStorageUnit;
  43. interface  ODStorageUnitView;
  44. interface  ODTransform;
  45. interface  ODDragItemIterator;
  46. interface  ODSession;
  47. interface  ODTypeList;
  48. interface  ODObjectSpec;
  49. interface  ODEmbeddedFramesIterator;
  50.  
  51. typedef somToken FW_CPart;
  52.  
  53. //==============================================================================
  54. // ODFDraw
  55. //==============================================================================
  56.  
  57. module ODFExamples
  58. {
  59.     interface ODFDraw : ODPart
  60.     {
  61.         //-------------------------------------------------------------------------
  62.         // New protocol
  63.         //-------------------------------------------------------------------------
  64.         FW_CPart*     GetFrameworkPart();
  65.         FW_CPart*    NewFrameworkPart(in ODPart partWrapper);
  66.     
  67. #ifdef __SOMIDL__
  68.         implementation
  69.         {
  70.             functionprefix = ODFDraw;
  71.             
  72.             //# Pass thru the export symbols for MrCpp compiler. [sfu]
  73.             //# This is a work-around to eliminate the need for an export file.
  74.             
  75.             passthru C_xh =
  76.                 "class FW_CPart;"
  77.                 "#ifdef __MRC__"
  78.                 "  #pragma export on"
  79.                 "  extern struct ODFExamples_ODFDrawClassDataStructure SOMDLINK ODFExamples_ODFDrawClassData;"
  80.                 "  #pragma export off"
  81.                 "#endif";
  82.             
  83.             override:
  84.                 somInit,
  85.                 somUninit,        
  86.                 Release,
  87.                 ReleaseAll,
  88.                 Externalize,
  89.                   CloneInto,
  90.                  HasExtension,
  91.                 AcquireExtension,
  92.                 ReleaseExtension,
  93.                 Purge,        
  94.                 InitPart,
  95.                 InitPartFromStorage,
  96.                 DisplayFrameAdded,
  97.                 DisplayFrameRemoved,
  98.                 DisplayFrameConnected,
  99.                 DisplayFrameClosed,
  100.                    AttachSourceFrame,
  101.                 FrameShapeChanged,
  102.                 ViewTypeChanged,
  103.                 PresentationChanged,
  104.                 SequenceChanged,
  105.                 LinkStatusChanged,
  106.                 ContainingPartPropertiesUpdated,
  107.                 ReadPartInfo,
  108.                 WritePartInfo,
  109. #if FW_OPENDOC_VERSION >= FW_OPENDOC_DR2
  110.                 ClonePartInfo,
  111. #endif
  112.                 Open,
  113.                 Draw,
  114.                 FacetAdded,
  115.                 FacetRemoved,
  116.                 GeometryChanged,
  117.                 HighlightChanged,
  118.                 CanvasChanged,
  119.                 CanvasUpdated,
  120.                 GetPrintResolution,
  121.                 BeginRelinquishFocus,
  122.                 CommitRelinquishFocus,
  123.                 AbortRelinquishFocus,
  124.                 FocusAcquired,
  125.                 FocusLost,
  126.                 ExternalizeKinds,
  127.                 ChangeKind,
  128.                 HandleEvent,
  129.                 AdjustMenus,
  130.                 UndoAction,
  131.                 RedoAction,
  132.                 DisposeActionState,
  133.                 WriteActionState,
  134.                 ReadActionState,
  135.                 FulfillPromise,
  136.                 DropCompleted,
  137.                 DragEnter,
  138.                 DragWithin,
  139.                 DragLeave,
  140.                 Drop,
  141.                 CreateLink,
  142.                 RevealLink,
  143.                 LinkUpdated,
  144.                 EmbeddedFrameUpdated,
  145. #if FW_OPENDOC_VERSION >= FW_OPENDOC_DR2
  146.                 EditInLinkAttempted,
  147. #endif
  148.                 RequestEmbeddedFrame,
  149.                 RemoveEmbeddedFrame,
  150.                 RequestFrameShape,
  151.                 UsedShapeChanged,
  152.                 AdjustBorderShape,
  153.                 AcquireContainingPartProperties,
  154.                 RevealFrame,
  155.                 EmbeddedFrameSpec,
  156. #if FW_OPENDOC_VERSION < FW_OPENDOC_DR2
  157.                 MouseEnter,
  158.                 MouseWithin,
  159.                 MouseLeave,
  160.                 HandleEventInEmbedded,
  161. #endif
  162.                 CreateEmbeddedFramesIterator;
  163.         
  164.             releaseorder:
  165.                 GetFrameworkPart,
  166.                 NewFrameworkPart,
  167.             
  168.             majorversion = 1; minorversion = 0;
  169.             
  170.             //# Put all forward class declarations and #includes for types that
  171.             //# are private to the implementation. These ( probably ) are non-som objects that will
  172.             //# not be passed THRU some ever ( as I understand it ).
  173.             passthru C_xih = "class FW_CPart;";
  174.         
  175.             // instance variables
  176.             FW_CPart*    fFrameworkPart;
  177.         };
  178. #endif
  179.     };
  180.  
  181. };
  182.  
  183.  
  184. #endif
  185.